﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStringListModel>
#include <QStringList>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private:
    void initListView();

private:
    QStringList m_strlist;
    QStringListModel *m_modellist;

private slots:
    void on_m_pbn_init_clicked();

    void on_m_pbn_clean_clicked();

    void on_m_pbn_additem_clicked();

    void on_m_pbn_insertitem_clicked();

    void on_m_pbn_delItem_clicked();

    void on_m_pbn_moveup_clicked();

    void on_m_pbn_movedown_clicked();

    void on_m_pbn_sort_clicked(bool checked);

    void on_m_listview_clicked(const QModelIndex &index);

    void on_m_checkBox_enableEdit_clicked(bool checked);

    void on_m_pbn_clean_display_clicked();

    void on_m_pbn_display_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
